package com.etc.service.impl;

import com.etc.entity.Goods;
import com.etc.repository.GoodsRepository;
import com.etc.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 武晓春
 * @Description
 * @Date 2021/2/20  15:10
 **/
@Service
public class GoodsServiceImpl implements IGoodsService {
    @Autowired
    private GoodsRepository goodsRepository;
    @Override
    public List<Goods> findByAll() {
        return goodsRepository.findAll();
    }
}
